/*
 *	数组演示
 */

#include<stdio.h>

int main() {
	int arr[5];		//数组声明语句
	arr[3] = 6;
	printf("arr[3]=%d\n", arr[3]);
	*(arr + 3) = 2;
	printf("arr[3]=%d\n", arr[3]);

	for (int i = 0; i < 5; i++) {
		arr[i] = i + 1;
	}
	for (int i = 4; i >= 0; i--) {
		printf("arr[%d]=%d\n", i, arr[i]);
	}
	return 0;
}
